OpenBuildings GenerativeComponents Help

FindObjectByName

Finds and returns the top-level object having the given name.

object FindObjectByName(string name, optional bool throwExceptionIfNotFound)

If the second argument is omitted, or is false, this function returns null if the name isn't found.

If the second argument is provided and is true, this function throws a runtime exception if the name isn't found.